package com.atguigu.gulimall.member.feign;

import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * 调用哪个远程服务，这个里面需要写上服务名称
 */
@FeignClient(value = "gulimall-coupon")
public interface CouponsFeignService {

    /**
     * 查询会员的优惠券
     * @return
     */
    @GetMapping("/coupon/coupon/member/list")
    R memberCoupons();
}
